function minCoins(coins, amount) {
  
}